<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
    var str = 'ab12cdf234sd6fsd723sdf91sfdds82f52';

    var reg = /\d+/g; // + 也是一个量词，是 {1, } 方式的简写

    console.log(str.match(reg));

</script>

</html>
